package com.test.base.dao;
import com.test.base.entity.NideshopTopicCategory;
import java.util.List;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopTopicCategoryDao{
	/**
	 * 获得NideshopTopicCategory数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopTopicCategoryRowCount(Assist assist);
	/**
	 * 获得NideshopTopicCategory数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopTopicCategory> selectNideshopTopicCategory(Assist assist);
	/**
	 * 获得一个NideshopTopicCategory对象,以参数NideshopTopicCategory对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopTopicCategory selectNideshopTopicCategoryByObj(NideshopTopicCategory obj);
	/**
	 * 通过NideshopTopicCategory的id获得NideshopTopicCategory对象
	 * @param id
	 * @return
	 */
    NideshopTopicCategory selectNideshopTopicCategoryById(Integer id);
	/**
	 * 插入NideshopTopicCategory到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopTopicCategory(NideshopTopicCategory value);
	/**
	 * 插入NideshopTopicCategory中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopTopicCategory(NideshopTopicCategory value);
	/**
	 * 通过NideshopTopicCategory的id删除NideshopTopicCategory
	 * @param id
	 * @return
	 */
    int deleteNideshopTopicCategoryById(Integer id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopTopicCategory
	 * @param assist
	 * @return
	 */
    int deleteNideshopTopicCategory(Assist assist);
	/**
	 * 通过NideshopTopicCategory的id更新NideshopTopicCategory中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopTopicCategoryById(NideshopTopicCategory enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopTopicCategory中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopTopicCategory(@Param("enti") NideshopTopicCategory value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopTopicCategory的id更新NideshopTopicCategory中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopTopicCategoryById(NideshopTopicCategory enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopTopicCategory中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopTopicCategory(@Param("enti") NideshopTopicCategory value, @Param("assist") Assist assist);
}